﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="TransferMoney.aspx.cs" Inherits="User_TransferMoney" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
<br/>
 <asp:HyperLink ID="UserLink" runat="server" NavigateUrl="UserPanel.aspx">Панель пользователя</asp:HyperLink>
&nbsp;<span class="Apple-style-span" 
        style="color: rgb(105, 105, 105); font-family: 'Helvetica Neue', 'Lucida Grande', 'Segoe UI', Arial, Helvetica, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none; ">→&nbsp; </span> 
    <asp:HyperLink ID="UserLink2" NavigateUrl="../User/Accounts.aspx" runat="server">Счета</asp:HyperLink>
&nbsp; <span class="Apple-style-span" 
        style="color: rgb(105, 105, 105); font-family: 'Helvetica Neue', 'Lucida Grande', 'Segoe UI', Arial, Helvetica, Verdana, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none; ">
    →&nbsp; </span> 
    <b><asp:Label ID="UserLabel" runat="server" Text="Перевод" ForeColor="black"></asp:Label></b><br/>
    <br />
    <table>
        <tr>
            <td>
                <b><asp:Label ID="FromAccountLabel" runat="server" Text="Со счёта"></asp:Label></b>
            </td>
            <td>
                <asp:TextBox ID="FromAccountNumber" Enabled="false" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                <b><asp:Label ID="ToAccountNumberLabel" runat="server" Text="На счёт"></asp:Label></b>
            </td>
            <td>
                <asp:TextBox ID="ToAccountNumber" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:DropDownList ID="BankList" runat="server">
                    <asp:ListItem Value="0" Selected="True">Открыт в данном банке</asp:ListItem>
                    <asp:ListItem Value="1">Открыт в стороннем банке</asp:ListItem>
                </asp:DropDownList>                
                     <asp:RequiredFieldValidator ControlToValidate="ToAccountNumber" CssClass="failureNotification"
                    Display="Dynamic" ID="RequiredFieldValidator122" runat="server" ValidationGroup="CurrencyValidationGroup">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator runat="server" ID="MoneyValidator2" ControlToValidate="ToAccountNumber"
                    Text="Введите целое положительное число." Display="Dynamic" ForeColor="Red" ValidationExpression="(^[1-9][0-9]*$)"
                    ValidationGroup="RegisterMoneyValidationGroup" />
            </td>
        </tr>
        <tr>
        <td>
           <b><asp:Label ID="Label2" runat="server" Text="Сумма"></asp:Label></b>
        </td>
        <td>
            <asp:TextBox ID="Amount" runat="server"></asp:TextBox>
               <asp:RequiredFieldValidator ControlToValidate="Amount" CssClass="failureNotification"
                    Display="Dynamic" ID="CurrencyUSDValidator22sdgf" runat="server" ValidationGroup="CurrencyValidationGroup">*</asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="AmountValid" ControlToValidate="Amount"
                    Text="Неправильный формат" ForeColor="Red" ValidationExpression="(^\d*\,?\d*[1-9]+\d*$)|(^[1-9]+\d*\,\d*$)" 
                    runat="server" ValidationGroup="CurrencyValidationGroup" />
        </td>
        </tr>
    </table>
    <br/>
    <asp:Button ID="TransferButton" runat="server" Text="Перевести" 
        onclick="TransferButton_Click" Enabled="false" ValidationGroup="CurrencyValidationGroup" />
    <asp:Label ID="ErrorLabel" runat="server" Text=""></asp:Label>
</asp:Content>
